﻿using System;
using System.Text;

namespace MyFinanceManager.Objects
{
    [Serializable]
    public class Record
    {
        public double Amount { get; set; }
        public DateTime Time { get; set; }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("Date: ");
            sb.AppendLine(this.Time.ToShortDateString());
            sb.Append("Time: ");
            sb.AppendLine(this.Time.ToShortTimeString());
            sb.Append("Amount/Price: ");
            sb.AppendLine(this.Amount.ToString("C"));
            return sb.ToString();
        }
    }
}
